/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  2022年01月20日 17时53分04秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */
#include <iostream>

using namespace std;

class Poly;
typedef Poly P;

class LiLei {

    friend class Poly;  //C++ 98 OK , C++11 OK
};

class Jim {

    friend Poly;   //C++ 98 error , C++11 OK
};

class HanMeiMei {

    friend P;      //C++ 98 error , C++11 OK
};

template < typename T > class People {

    friend T;
};

int main() {
    People < P > people;    //
    People < int >pi;
    return 0;
}
